#程序版本
VERSION  = 2023.07.25
#程序图标
#RC_ICONS = main.ico
#产品名称
QMAKE_TARGET_PRODUCT = markdowneditor
#版权所有
QMAKE_TARGET_COPYRIGHT = QT-company
#文件说明
QMAKE_TARGET_DESCRIPTION = markdown源码与解析显示
#编译平台
# 只支持msvc编译

# 项目配置
TARGET      = $$QMAKE_TARGET_PRODUCT    # 生成目标的名字
TEMPLATE    = app                       # 生成应用的类型  app、lib
DESTDIR     = $$PWD/../../bin           # 生成目标的路径


QT +=  webchannel webenginewidgets


HEADERS += \
    mainwindow.h \
    previewpage.h \
    document.h

SOURCES = \
    main.cpp \
    mainwindow.cpp \
    previewpage.cpp \
    document.cpp

RESOURCES = \
    resources/markdowneditor.qrc

# Disable Qt Quick compiler because the example doesn't use QML, but more importantly so that
# the source code of the .js files is not removed from the embedded qrc file.
CONFIG -= qtquickcompiler

FORMS += \
    mainwindow.ui

DISTFILES += \
    resources/3rdparty/MARKDOWN-LICENSE.txt \
    resources/3rdparty/MARKED-LICENSE.txt

# install
target.path = $$[QT_INSTALL_EXAMPLES]/webenginewidgets/markdowneditor
INSTALLS += target
